﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script type="text/javascript" src="/scripts/jquery-1.7.1.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <input name="LoginName" type="text" value="" style="width:120px;" />
        </div>
        <div>
            <input name="Password" type="password" value="" style="width:120px;" />
        </div>
        <div>
            <input name="Birthday" type="text" value="" style="width:120px;" />
        </div>
        <div>
            <input type="submit" value="提交" />
            <input id="btnTest" type="button" value="TestJson" />
        </div>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btnTest').bind('click', function () {
                $.getJSON('/ajax/GetObject.ashx', {}, function (data)
                {
                    alert(new Date(data.date).toLocaleString());
                });
            });
        });
    </script>
</body>
</html>
